using System;
using System.Windows.Messaging;

namespace YouVisio.Silverlight.TextDiff
{
    /// <summary>
    /// This file is to be used for debugging only.
    /// You can use it with http://silvertrace.codeplex.com/
    /// </summary>
    public static class Log
    {
        private readonly static LocalMessageSender _sender = new LocalMessageSender("TextDiffLog", LocalMessageSender.Global);

        public static void Debug(object o)
        {
            _sender.SendAsync(Convert.ToString(o));
        }
        public static void Debug(string s, params object[] args)
        {
            _sender.SendAsync(string.Format(s, args));
        }
    }
}